package com.example.demo1.handler;

import cn.yueshutong.springbootstartercurrentlimiting.annotation.CurrentLimiter;
import cn.yueshutong.springbootstartercurrentlimiting.handler.CurrentAspectHandler;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

@Component
public class MyCurrentLimitHandler implements CurrentAspectHandler {
    @Override
    public String around(ProceedingJoinPoint pjp, CurrentLimiter rateLimiter)  {
        return "500,系统繁忙，请稍后重试";
    }
//目前这个好像没用到，是处理多线程的，原地址：https://blog.csdn.net/qq_44112824/article/details/112027902
}
